package abstractfactory;

import abstractfactory.dao.DataAccess;
import abstractfactory.dao.IDepartment;
import abstractfactory.dao.IUser;
import abstractfactory.pojo.Department;
import abstractfactory.pojo.User;


public class Main {

    public static void main(String args[]) {
        User user = new User();
        Department dept = new Department();
        IUser iu = DataAccess.createUser();
//        IFactory factory = new AccessFactory();
//        IUser iu = factory.createUser();

        iu.Insert(user);
        iu.getUser(1);

        IDepartment id = DataAccess.createDepartment();
//        IDepartment id = factory.createDepartment();
        id.insert(dept);
        id.getDepartment(1);
    }
}
